using System;
using System.Collections.Generic;
using System.Text;
using Util;

namespace Ordering.Domain
{
    public class ProductType
    {
        #region Fields

        private string _name;
        private string _description;
        private string _identifier;

        #endregion

        #region Constructor

        public ProductType(string name, string description, string identifier)
        {
            #region Preconditions

            ArgumentValidation.ThrowIfNull(name, "name");
            ArgumentValidation.ThrowIfNull(description, "description");
            ArgumentValidation.ThrowIfNull(identifier, "identifier");

            #endregion

            _name = name;
            _description = description;
            _identifier = identifier;
        }

        #endregion

        #region Properties

        public string Identifier
        {
            get { return _identifier; }
        }

        public string Name
        {
            get { return _name; }
        }

        public string Description
        {
            get { return _description; }
        }

        #endregion
    }
}
